package com.example.iotmanagerment26.service.impl;

import com.example.iotmanagerment26.domain.CcyData;
import com.example.iotmanagerment26.service.TestService;
import org.springframework.stereotype.Service;

import java.util.Random;

@Service
public class TestServiceImpl implements TestService {
    @Override
    public CcyData randomData() {
        return new CcyData(new Random().nextInt(60)+1,new Random().nextInt(80)+1,new Random().nextInt(100)+1);
    }
}
